{extend name='admin@main'}
{block name="content"}
<div class="think-box-shadow">
    {include file='exchange/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='text-left nowrap'>兑换时间</th>
            <th class='text-left nowrap'>玩家ID</th>
            <th class='text-left nowrap'>订单号</th>
            <th class='text-left nowrap'>电话</th>
            <th class='text-left nowrap'>商品名</th>
            <th class='text-left nowrap'>是(1)否(2)兑换</th>
            <th class='text-left nowrap'>地址</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='text-left nowrap'>{$vo.InsertTime}</td>
            <td class='text-left nowrap'>
                <span class="color-red">{$vo.UserID|default='--'}</span>
            </td>
            <td class='text-left nowrap'>
                <span class="color-blue">{$vo.ID|default=''}</span>
                {eq name='vo.State' value='0'}<span class="layui-badge layui-bg-orange margin-left-5">待兑换</span>{/eq}
                {eq name='vo.State' value='1'}<span class="layui-badge layui-bg-blue margin-left-5">已兑换</span>{/eq}
            </td>
            <td class='text-left nowrap'>{$vo.Phone}</td>
            <td class='text-left nowrap'>{$vo.Describle}</td>
            <td class='text-left nowrap'>
                {if $vo.State eq 0} 未兑换
                    {elseif $vo.State eq 1} 平台已兑换
                {/if}
            </td>
            <td class='text-left nowrap'>{$vo.Address}</td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {$pages | Raw}
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
